<!-- LOGIN BLOCK START -->
<table cellpadding="0" cellspacing="0" class="w">
<tr>
	<td colspan="3">
{if $user.login}
<a class="rightmenu1" style="float:right;color:#900;" href="/signout/">Выход</a>
<a style="color:#666;" href="/my/"><b>Моя АЙДА</b></a>
{else}
<a class="rightmenu1" style="float:right;" href="/signup/">Регистрация</a>
<b>Моя АЙДА</b>
{/if}
	</td>
</tr>
<tr><td colspan="3" height="3"></td></tr>
{if $user.login}

<tr><td colspan="3">Добро пожаловать,<br /><a class="userlink" href="/my/"><b>{$user.name} {$user.surname}</b></a></td></tr>
<tr><td colspan="3" height="3"></td></tr>
{php}
$__tabs = array( );
//var_dump( request::__getMe( ) ->raw_url );
$__tabs[''] = 'Моя страница';
$__tabs['photos'] = 'Мои фотографии';
$__tabs['responses'] = 'Мои отзывы';
$__tabs['advices'] = 'Мои советы';
$__tabs['stories'] = 'Мои рассказы';
$__tabs['videos'] = 'Мои видео';
$this ->_tpl_vars['tabs'] = $__tabs;
$this ->_tpl_vars['preurl'] = '/my/' ;
//var_dump( $this ->_tpl_vars );
{/php}
{foreach from=$tabs key=k item=i}
<tr><td width="26"><div class="leftmenu1">&nbsp;</div></td><td colspan="2"><a class="leftmenu" href="{$preurl}{$k}">{$i}</a></td></tr>
{/foreach}
{else}
<tr><td colspan="3" height="10" class="bg_login1"></td></tr>
<tr>
	<td width="1" height="107" bgcolor="#c9c9c9"></td>
	<td width="196" class="bg_login4">

<form action="/my/signin/" method="post">
<table cellpadding="0" cellspacing="0" class="wh" border="0">
<tr>
	<td height="54" valign="top">
		<table cellpadding="0" cellspacing="0" border="0">
		<tr><td colspan="4" height="5"></td></tr>
		<tr>
			<td width="10"></td>
			<td class="white">Логин:</td>
			<td width="5"></td>
			<td width="120" height="19" class="search_input2" align="center" valign="middle"><input type="text" class="search" value="введите логин" name="login" style="width: 111px; height: 17px;" onblur="javascript: if(this.value=='') this.value='введите логин';" onfocus="javascript:if (this.value=='введите логин') this.value='';" ></td>
		</tr>
		<tr><td colspan="4" height="5"></td></tr>
		<tr>
			<td></td>
			<td class="white">Пароль:</td>
			<td></td>
			<td width="120" height="19" class="search_input2" align="center" valign="middle"><input type="text" class="search" value="введите пароль" name="password" style="width: 111px; height: 17px;" {literal}onblur="javascript: if(this.value=='') { this.value='введите пароль'; this.type='text'; }" onfocus="javascript:if (this.value=='введите пароль') { this.type='password'; this.value=''; };"{/literal} ></td>
		</tr>
		</table>
	</td>
</tr>
<tr>
	<td height="53" class="bg_login5">
		<table cellpadding="0" cellspacing="0" class="w" border="0">
		<tr>
			<td width="80" rowspan="3"></td>
			<td align="right"><input onClick="/*return CheckLogin();*/" type="image" style="width: 70px; height: 23px;"src="/img/button_enter.gif" alt="войти"></td>
			<td width="12" rowspan="3"></td>
		</tr>
		<tr><td height="3"></td></tr>
		<tr><td align="right"><a class="rightmenu2" href="/my/recovery/">Забыли пароль</a></td></tr>
		</table>
	</td>
</tr>
</table>
</form>
</td>
<td width="6" class="bg_login3"></td>
</tr>
<tr><td colspan="3" height="6" class="bg_login2"></td></tr>
{/if}
<tr><td colspan="3" height="10"></td></tr>
</table>
<!-- LOGIN BLOCK END -->